// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class Main {
    public static void main(String[] args) {
        String str = "我爱你, 中国！";
        System.out.println("原始字符串："+str);
        //打印每个字符串的Unicode编码
        for (int i=0;i<str.length();i++){
            char c = str.charAt(i);
            int unicode = (int)c;
            System.out.println("字符'"+c+"'的unicode编码为:"+unicode);
        }
    }
}